<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Login</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f0f0f0;
      padding: 20px;
      background-image: url("1.jpg");  /* 添加这行来引入背景图 */
      background-size: cover;  /* 使背景图充满整个容器 */
      background-repeat: no-repeat;  /* 不要重复背景图 */
    }

    h1 {
      text-align: center;
      color: #333;
    }

    form {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 50px;
    }

    label {
      font-weight: bold;
      margin-bottom: 10px;
    }

    input[type="text"], input[type="password"] {
      padding: 10px;
      margin-bottom: 20px;
      width: 300px;
      border-radius: 5px;
      border: 1px solid #ccc;
    }

    button[type="submit"] {
      padding: 10px 20px;
      background-color: #007BFF;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    button[type="submit"]:hover {
      background-color: #0056b3;
    }

    #check {
      margin-top: 20px;
      font-size: 14px;
      color: red;
    }
  </style>
</head>
<body>
<h1>Login</h1>
<form action="signin" method="post">
  <label for="username">用户名:</label>
  <input type="text" id="username" name="username" required><br>
  <label for="password">密码:</label>
  <input type="password" id="password" name="password" required><br>
  <button type="submit" value="确认">确认</button>
</form>
<div id="check"></div>
</body>
</html>